// const env = process.env.NODE_ENV
const {
  defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    host: '127.0.0.1',
    open: true,
    proxy: {
      '/api': {
        target: 'https://iot.wumei.live/api',
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '/api': ''
        }
      },
      "/prod-api": {
        // https://iot.wumei.live/prod-api/login
        target: "https://iot.wumei.live/prod-api",
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '/prod-api': ''
        }
      }

    }
  }
})